@use './variables' as *;
@use './mixins' as *;

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  color: $text-color;
  background-color: $background-color;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  height: 100%;
}

a {
  text-decoration: none;
  color: $primary-color;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: $spacing-md;
}

.page-content {
  padding: $spacing-md;
}

// 文本对齐
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

// Margin辅助类
.mt-0 {
  margin-top: 0;
}

.mt-1 {
  margin-top: $spacing-xs;
}

.mt-2 {
  margin-top: $spacing-sm;
}

.mt-3 {
  margin-top: $spacing-md;
}

.mt-4 {
  margin-top: $spacing-lg;
}

.mt-5 {
  margin-top: $spacing-xl;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-1 {
  margin-bottom: $spacing-xs;
}

.mb-2 {
  margin-bottom: $spacing-sm;
}

.mb-3 {
  margin-bottom: $spacing-md;
}

.mb-4 {
  margin-bottom: $spacing-lg;
}

.mb-5 {
  margin-bottom: $spacing-xl;
}

// Padding辅助类
.p-0 {
  padding: 0;
}

.p-1 {
  padding: $spacing-xs;
}

.p-2 {
  padding: $spacing-sm;
}

.p-3 {
  padding: $spacing-md;
}

.p-4 {
  padding: $spacing-lg;
}

.p-5 {
  padding: $spacing-xl;
}